package org.stwy.custom;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.stwy.comm.base.BaseRecordsEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rap.common.annotation.MetaData;
import com.rap.common.entity.AuditableEntity;
import com.rap.common.entity.BaseEntity;

/**
*版权信息 (c) RAP 保留所有权利.
*@author Rap.Codegen
*@Team RAP Team
*@Date 2015-4-4 17:05:42
*<p></p>
*
*@参与人：Rap.Codegen
*/
 
@MetaData(value = "客户")
@Entity
@Table(name = "stwy_custom")
@DynamicInsert
@DynamicUpdate
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class CustomEntity extends BaseRecordsEntity {
	private static final long serialVersionUID = 1L;
	
	@MetaData(value = "客户名称",comments="")
	@Column(nullable = false,length = 100)
	private String theName;
	
	@MetaData(value = "联系电话",comments="")
	@Column(nullable = true,length = 20)
	private String phone;
	
	@MetaData(value = "地址",comments="")
	@Column(nullable = true,length = 200)
	private String address;
	
	@MetaData(value = "备注",comments="" )
	@Column(nullable = true,length = 2000)
	private String remark;
	
	@MetaData(value = "一级组别",comments="",enumType="stwy_groupOne")
	@Column(nullable = true,length = 4)
	private String groupOne;

	public String getTheName() {
		return theName;
	}

	public void setTheName(String theName) {
		this.theName = theName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getGroupOne() {
		return groupOne;
	}

	public void setGroupOne(String groupOne) {
		this.groupOne = groupOne;
	}

	@Override
	public String toString() {
		return this.getTheName();
	}
}
